//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package main

import (
	"atomgit.com/openlinksaas-org/grpcutil/commands/callcmd"
	"atomgit.com/openlinksaas-org/grpcutil/commands/desccmd"
	"atomgit.com/openlinksaas-org/grpcutil/commands/genreqcmd"
	"atomgit.com/openlinksaas-org/grpcutil/commands/parsecmd"
	"atomgit.com/openlinksaas-org/grpcutil/utils"
	"github.com/spf13/cobra"
)

func main() {
	rootCmd := &cobra.Command{}
	rootCmd.AddCommand(parsecmd.ParseCommand, desccmd.DescCommand, genreqcmd.GenReqCommand, callcmd.CallCommand)
	err := rootCmd.Execute()
	if err != nil {
		utils.PrintError(err)
	}
}
